package com.steven.Timer;

import java.util.Date;
import java.util.Timer;

/**
 * Created with IntelliJ IDEA.
 * User: think
 * Date: 12-10-18
 * Time: 下午7:16
 * To change this template use File | Settings | File Templates.
 */
public class TimerTest  {

   public static void main(String [] args ){
       System.out.println("开始执行任务");
       Timer timer  = new Timer();
       timer.schedule(new BackupTaskTimer(),new Date(),1000);

       System.out.println("完成任务");
   }
}
